package com.colliery.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-07-30 14:43:51
 * @describe 实体类
 */
@TableName("sys_resource")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "SysResource对象", description = "")
public class SysResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源id")
    @TableId(value = "resource_id", type = IdType.UUID)
    private String resourceId;

    @ApiModelProperty(value = "资源名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "component")
    @TableField("component")
    private String component;

    @ApiModelProperty(value = "meta")
    @TableField("meta")
    private String meta;

    @ApiModelProperty(value = "父级菜单")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "redirect")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty(value = "排序")
    @TableField("sort_id")
    private Integer sortId;

    @ApiModelProperty(value = "修改用户")
    @TableField("modified")
    private String modified;

    @ApiModelProperty(value = "创建用户")
    @TableField("created")
    private String created;

    @ApiModelProperty(value = "修改时间")
    @TableField("modify_time")
    private Date modifyTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "是否隐藏")
    @TableField("hidden")
    private String hidden;


    public String getResourceId() {
        return resourceId;
    }

    public SysResource setResourceId(String resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    public String getName() {
        return name;
    }

    public SysResource setName(String name) {
        this.name = name;
        return this;
    }

    public String getPath() {
        return path;
    }

    public SysResource setPath(String path) {
        this.path = path;
        return this;
    }

    public String getComponent() {
        return component;
    }

    public SysResource setComponent(String component) {
        this.component = component;
        return this;
    }

    public String getMeta() {
        return meta;
    }

    public SysResource setMeta(String meta) {
        this.meta = meta;
        return this;
    }

    public String getParentId() {
        return parentId;
    }

    public SysResource setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getRedirect() {
        return redirect;
    }

    public SysResource setRedirect(String redirect) {
        this.redirect = redirect;
        return this;
    }

    public Integer getSortId() {
        return sortId;
    }

    public SysResource setSortId(Integer sortId) {
        this.sortId = sortId;
        return this;
    }

    public String getModified() {
        return modified;
    }

    public SysResource setModified(String modified) {
        this.modified = modified;
        return this;
    }

    public String getCreated() {
        return created;
    }

    public SysResource setCreated(String created) {
        this.created = created;
        return this;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public SysResource setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public SysResource setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getHidden() {
        return hidden;
    }

    public SysResource setHidden(String hidden) {
        this.hidden = hidden;
        return this;
    }

    @Override
    public String toString() {
        return "SysResource{" +
                "resourceId=" + resourceId +
                ", name=" + name +
                ", path=" + path +
                ", component=" + component +
                ", meta=" + meta +
                ", parentId=" + parentId +
                ", redirect=" + redirect +
                ", sortId=" + sortId +
                ", modified=" + modified +
                ", created=" + created +
                ", modifyTime=" + modifyTime +
                ", createTime=" + createTime +
                ", hidden=" + hidden +
                "}";
    }
}